home *** CD-ROM | disk | FTP | other *** search
- on enlargement
- global frag, myv, myho, myw, myhi, myl, myt
- puppetSprite(11, 1)
- set newho to ((320 - myho) * 2) + 320
- set neww to ((225 - myv) * 2) + 225
- put newho
- if newho < (640 - myw) then
- set newho to 640 - myw
- end if
- if newho > myw then
- set newho to myw
- end if
- put newho
- set the locH of sprite 11 to newho
- put neww
- if neww < (480 - myhi) then
- set neww to 480 - myhi
- end if
- if neww > myhi then
- set neww to myhi
- end if
- put neww
- set the locV of sprite 11 to neww
- set the height of sprite 11 to myhi * 2
- set the width of sprite 11 to myw * 2
- updateStage()
- set frag to 1
- end
-
- on small
- global frag, myv, myho, myw, myhi, myl, myt
- set the height of sprite 11 to myhi
- set the width of sprite 11 to myw
- updateStage()
- set frag to 0
- puppetSprite(11, 0)
- end
-